home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 25 / AMIGAplus Sonderheft 25 (2000)(Falke)(DE)(Track 1 of 4)[!].iso / libs / README.pOS < prev    next >
Text File  |  2000-05-08  |  2KB  |  59 lines

  1. IMPORTANT
  2. =========
  3.  
  4. The ixemul p.OS support will almost certainly contain bugs. Please let me
  5. know of any problems.
  6.  
  7. Major missing features in the p.OS port:
  8.  
  9. - no fifo: and ixpipe:
  10. - ixtimezone hasn't been ported to p.OS
  11.  
  12. There is also no support for hard or soft links since p.OS doesn't support
  13. this (yet). The same is true for network support.
  14.  
  15.                         Hans Verkuil    (hans@wyst.hobby.nl)
  16.  
  17.  
  18.  
  19.  
  20. Starting with ixemul 46.0 some basic support for p.OS has been added which
  21. was (mostly) finished in ixemul-47.0.
  22.  
  23. It turns out that the link formats are identical between AmigaOS and p.OS,
  24. and that p.OS will set the d0 register to 'pOS\0' when your program is first
  25. called. So the ixemul startup code can test under which OS it is running by
  26. testing the d0 register and use the appropriate code for each OS. This way
  27. you can run the same program under both AmigaOS and p.OS, as long as no
  28. kernel calls are used by your program, only ixemul calls are allowed.
  29.  
  30. If you nevertheless want to use kernel calls, you must test the "int ix_os;"
  31. global variable which is set to 0 when running under AmigaOS and to
  32. OS_IS_POS (see ix.h for the OS_IS_AMIGAOS and OS_IS_POS macros) when
  33. running under p.OS.
  34.  
  35. If your program only supports AmigaOS for example, then you should test
  36. this global like this:
  37.  
  38.         if (ix_os != OS_IS_AMIGAOS)
  39.         {
  40.           ix_req(NULL, "Abort", NULL, "%s supports only AmigaOS!", __progname);
  41.           exit(20);
  42.         }
  43.  
  44. The function ix_req is an OS independent function that will show a
  45. requester with the given format string, title and buttons.  See ix.h
  46. for the prototypes.
  47.  
  48. Finally, the libc.a debug function KPrintF() has been adapted to work on both
  49. OSes.
  50.  
  51. There is one class of programs that will not yet work on both OSes, and
  52. that are the programs that use the shared ixlibraries. E.g. all the X
  53. clients will for now only work on AmigaOS.
  54.  
  55. But all other programs, as long as they don't use kernel calls, will work
  56. on both OSes.
  57.  
  58.                      Hans Verkuil (29-6-1997)
  59.